/**
 * Created by Administrator on 2017/6/12.
 */
var mongoose = require('../db/db');
var Schema = mongoose.Schema;

var MovieSchema = new Schema({
  name: String,
  director: String,
  year: Number,
  language: String,
  poster: String,
  play: String,
  summary: String,
  categories: [{
    type: Schema.Types.ObjectId,
    ref: 'Category'
  }],
  time: Date
});

module.exports = MovieSchema;

